package com.ehome.android_build_plugin

import android.content.Intent
import android.os.Bundle
import android.util.Log
import com.efs.sdk.launch.LaunchManager
import com.ehome.android_build_plugin.databinding.ActivityMainBinding
import com.ehome.mvvm.arms.base.BaseActivity

class MainActivity : BaseActivity() {

    private val TAG = MainActivity::class.simpleName
    private lateinit var binding:ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        Log.d(TAG, "MainActivity LaunchManager.isInit -> ${LaunchManager.isInit()}")
        super.onCreate(savedInstanceState)
        binding =  ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)


        binding.secondActivity.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, SecondActivity::class.java)
            startActivity(intent)
        }

        binding.testActivity.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, Test::class.java)
            startActivity(intent)
        }
    }
}